from rest_framework import serializers


class CryptoSerializer(serializers.Serializer):
    text = serializers.CharField()
    password = serializers.CharField()
    action = serializers.ChoiceField(choices=['encrypt', 'decrypt'])
